package com.googlecode.microanalyst.palette.model;

import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.swt.graphics.Image;

import com.googlecode.microanalyst.designer.model.AnalysisElement;
import com.googlecode.microanalyst.designer.model.property.PropertyHandler;
import com.googlecode.microanalyst.palette.i18n.PaletteMessages;

public class Smooth extends AnalysisElement {

	private static final long serialVersionUID = 1L;

	public static final String ICON_PATH = "icons/smooth16.gif";//$NON-NLS-1$

	public static final String INPUT = "in", OUTPUT = "out";

	public static Image ICON = createImage(Smooth.class, ICON_PATH);

	public Smooth() {
		size.width = -1;
		size.height = -1;
	}

	@Override
	public Image getIconImage() {
		return ICON;
	}

	@Override
	public Dimension getSize() {
		return new Dimension(size.width, size.height);
	}
	
	@Override
	public void setSize(Dimension size) {
	}

	@Override
	public String toString() {
		return PaletteMessages.Palette_Tool_Smooth;
	}

	@Override
	public Object clone() {
		return new Smooth();
	}

	@Override
	public PropertyHandler getPropertyHandler() {
		return new SmoothProperties(this);
	}

}
